<?php

class admin_trash extends Model{

    function __construct(){
        parent::__construct();
        $this->_tableName = 'admin_trash';
    }
    //恢复
    function reset($v){
    	if(!empty($v)){
	    		$this->where(array($v['ftabkey']=>$v['ftableid']));
	    		$sql = self::$db->update($v['ftable'],array('fisdel'=>0),$this->_where);
				$this->_reset_write();
				self::$db->query($sql)->affected_rows();
    	}
    }
};